package com.tjetc;

import com.tjetc.dao.Detail1Mapper;
import com.tjetc.dao.Introduce1Mapper;
import com.tjetc.dao.Mapper;
import com.tjetc.domain.Adresscity;
import com.tjetc.domain.Detail1;
import com.tjetc.domain.Introduce1;
import com.tjetc.repository.DetailDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.junit.jupiter.api.Test;

import java.util.List;

@SpringBootTest
public class test1 {
    @Autowired
    private Detail1Mapper detail1Mapper;
    @Autowired
    private Mapper mapper;
    @Autowired
    private Introduce1Mapper introduce1Mapper;
    @Test
    public void test() throws Exception{
//        List<Detail1> detail1List =detail1Mapper.lookforDetail1Byid(1);
//        System.out.println(detail1List);
    }
    @Test
    public void test1() throws Exception{
//        List<Introduce1> introduce1List =introduce1Mapper.lookforIntroduceByid(100);
//        System.out.println(introduce1List);
    }
    @Test
    public void test2() throws Exception{
        List<Adresscity> a = mapper.findcityaddress("北京");
        System.out.println(a);
    }

}
